furny.states
Class SummaryUIState<T extends IIndividual<T>>

java.lang.Object
  extended by com.jme3.app.state.AbstractAppState
      extended by ga.view.appstate.GUIState
          extended by furny.states.SummaryUIState<T>
Type Parameters:
T - The generic type of the individuals.
All Implemented Interfaces:
com.jme3.app.state.AppState

public class SummaryUIState<T extends IIndividual<T>>
extends GUIState

This is an advanced app state which adds gui to the summary post state.

Since:
12.08.2012
Author:
Stephan Dreyer

Field Summary
private  com.jme3.audio.AudioRenderer audioRenderer
           
private  SummaryUIController<T> controller
           
private  IInteractiveFitnessEvaluator<T> evaluator
           
private  MenuListener menuListener
           
private  de.lessvoid.nifty.Nifty nifty
           
private  com.jme3.niftygui.NiftyJmeDisplay niftyDisplay
           
 
Fields inherited from class ga.view.appstate.GUIState
assetManager, cam, inputManager, renderManager, stateManager, timer, viewPort
 
Fields inherited from class com.jme3.app.state.AbstractAppState
initialized
 
Constructor Summary
SummaryUIState(IInteractiveFitnessEvaluator<T> evaluator, MenuListener menuListener)
          Instantiates a new summary ui state.
 
Method Summary
 void cleanup()
           
 void initialize(com.jme3.app.state.AppStateManager stateManager, com.jme3.app.Application app)
           
 void setEnabled(boolean enabled)
           
 
Methods inherited from class ga.view.appstate.GUIState
finalCleanUp, getCamera
 
Methods inherited from class com.jme3.app.state.AbstractAppState
isEnabled, isInitialized, postRender, render, stateAttached, stateDetached, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

controller

private SummaryUIController<T extends IIndividual<T>> controller

niftyDisplay

private com.jme3.niftygui.NiftyJmeDisplay niftyDisplay

nifty

private de.lessvoid.nifty.Nifty nifty

audioRenderer

private com.jme3.audio.AudioRenderer audioRenderer

evaluator

private final IInteractiveFitnessEvaluator<T extends IIndividual<T>> evaluator

menuListener

private final MenuListener menuListener
Constructor Detail

SummaryUIState

public SummaryUIState(IInteractiveFitnessEvaluator<T> evaluator,
                      MenuListener menuListener)
Instantiates a new summary ui state.

Parameters:
evaluator - the evaluator
menuListener - the menu listener
Since:
12.08.2012
Method Detail

initialize

public void initialize(com.jme3.app.state.AppStateManager stateManager,
                       com.jme3.app.Application app)
Specified by:
initialize in interface com.jme3.app.state.AppState
Overrides:
initialize in class GUIState

setEnabled

public void setEnabled(boolean enabled)
Specified by:
setEnabled in interface com.jme3.app.state.AppState
Overrides:
setEnabled in class GUIState

cleanup

public void cleanup()
Specified by:
cleanup in interface com.jme3.app.state.AppState
Overrides:
cleanup in class com.jme3.app.state.AbstractAppState